import request from "@/request/api";

//巡视标准接口
//1.巡视标准查询接口
export function queryPatrolStandardList(data) {
  return request({
    url: "/eam-service-standard/patrol/page",
    method: "get",
    params: data,
  });
}
//1.根据id查询标准详情
export function queryPatrolStandardDetail(data) {
  return request({
    url: "/eam-service-standard/patrol",
    method: "get",
    params: data,
  });
}
//2、巡视标准新增接口
export function addPatrolStandard(data) {
  return request({
    url: "/eam-service-standard/patrol",
    method: "post",
    data: data,
  });
}
//2、巡视标准修改接口
export function updatePatrolStandard(data) {
  return request({
    url: "/eam-service-standard/patrol",
    method: "put",
    data: data,
  });
}
//3、巡视标准删除接口
export function deletePatrolStandard(data) {
  return request({
    url: "/eam-service-standard/patrol",
    method: "delete",
    params: data,
  });
}

//设置标准状态
export function setPatrolStandardStatus(data) {
  return request({
    url: "/eam-service-standard/patrol/updateStatus",
    method: "put",
    params: data,
  });
}
//设置为公共标准
export function setCommonPatrolStandard(data) {
  return request({
    url: "/eam-service-standard/patrol/updateToPublic",
    method: "put",
    params: data,
  });
}
//巡视标准导入接口
export function importPatrolStandard(formData) {
  return request({
    url: "/eam-service-standard/patrol/import",
    method: "post",
    data: formData,
  });
}
